import { defineConfig } from 'umi';
import routes from './routes';

const title= 'lin-sen';
export default defineConfig({
    layout:{
      title:title,
    },
    routes: routes,
    404:false,
    analyze:
    {
      // 配置具体含义见：https://github.com/umijs/umi-webpack-bundle-analyzer#options-for-plugin
      analyze: {
        analyzerMode: 'server',
        analyzerPort: 8888,
        openAnalyzer: true,
        // generate stats file while ANALYZE_DUMP exist
        generateStatsFile: false,
        statsFilename: 'stats.json',
        logLevel: 'info',
        defaultSizes: 'parsed', // stat  // gzip
      }
    },
  });